using System;
using System.Collections.Generic;
using System.Text;
using Nullables;

namespace LibrErian.Model
{
	public class Author
	{
		private int id;
		private string name;
		private NullableDateTime dateOfBirth;
		
		public int Id
		{
			get { return id; }
			set { id = value; }
		}

		public string Name
		{
			get { return name; }
			set { name = value; }
		}

		public NullableDateTime DateOfBirth
		{
			get { return dateOfBirth; }
			set { dateOfBirth = value; }
		}
	
		public Author()
		{
			this.id = -1;
			this.dateOfBirth = DateTime.Now;
		}

		public override string ToString()
		{
			return this.Name;
		}
	}
}
